﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BySoft.Server.Consts;

namespace BySoft.Server.Common.Enum
{
    public static class BaseEnum
    {
        public static SortedList UserTypeList2()
        {
            SortedList sl = new SortedList();
            sl.Add("1", "经信委用户");
            sl.Add("3", "系统管理员");
            return sl;
        }

        public enum AllTables
        {
            /// <summary>
            /// BOM
            /// </summary>
            BOM
        }

        public enum ProType
        {
            /// <summary>
            /// 成品
            /// </summary>
            Product = 1,
            /// <summary>
            /// 原料
            /// </summary>
            Material = 2
        }

        public enum BillStatus
        {
            /// <summary>
            /// 删除
            /// </summary>
            Del=0,
            /// <summary>
            /// 有效
            /// </summary>
            CheckSuccess,
            /// <summary>
            /// 审核中
            /// </summary>
            InCheck,
            /// <summary>
            /// 暂存
            /// </summary>
            TempSave,
            /// <summary>
            /// 退件
            /// </summary>
            Invalid
        }

        public enum OrderType
        {
            /// <summary>
            /// 上移
            /// </summary>
            Pre,
            /// <summary>
            /// 下移
            /// </summary>
            Next
        }

        /// <summary>
        /// 用户类型
        /// </summary>
        public enum UserType
        {
            AdminUser=0,
            /// <summary>
            /// 实惠用户
            /// </summary>
            SHUser = 1,
            /// <summary>
            /// 省级代理
            /// </summary>
            SDUser = 2,
            /// <summary>
            /// 市级代理
            /// </summary>
            CDUser = 3,
            /// <summary>
            /// 县级代理
            /// </summary>
            XDUser = 4,
            /// <summary>
            /// 定点商户
            /// </summary>
            DMUser = 5,
            /// <summary>
            /// 消费者
            /// </summary>
            CMUser = 6
        }

        /// <summary>
        /// 卡片注册信息里面的注册类型
        /// </summary>
        public enum CardRegister_RegisterType
        {
            /// <summary>
            /// 省级代理
            /// </summary>
            SDUser = 1,
            /// <summary>
            /// 县级代理
            /// </summary>
            XDUser = 2,
            /// <summary>
            /// 定点商户
            /// </summary>
            DMUser = 3,
            /// <summary>
            /// 消费者
            /// </summary>
            CMUser = 4
        }


        /// <summary>
        /// 基础档案前缀
        /// </summary>
        public enum  Prefix
        {
            /// <summary>
            /// 省级代理用户
            /// </summary>
            SD

        }


        /// <summary>
        /// 卡片信息状态
        /// </summary>
        public enum CardStatus
        {
            /// <summary>
            /// 1：有效
            /// </summary>
            Active = 1,
            /// <summary>
            /// 2：挂失
            /// </summary>
            Lost = 2,
            /// <summary>
            /// 3：废除
            /// </summary>
            Dead = 3
          
        }

        /// <summary>
        /// 卡片信息中的卡片注册状态
        /// </summary>
        public enum CardInfo_RegisterStatus
        {
            /// <summary>
            /// 0：未注册
            /// </summary>
            NoReg=0,
            /// <summary>
            /// 1：省级代理注册
            /// </summary>
            SDReg=1,
            /// <summary>
            /// 2：县级代理注册
            /// </summary>
            XDReg=2,
            /// <summary>
            /// 3：定点商户注册
            /// </summary>
            DMReg=3,
            /// <summary>
            /// 4：消费者注册
            /// </summary>
            CMReg=4

        }

        //用户类型列表
        public static SortedList CardInfo_RegisterStatusList()
        {
            SortedList sl = new SortedList();
            sl.Add("0", "未注册");
            sl.Add("1", "省级代理注册");
            sl.Add("2", "县级代理注册");
            sl.Add("3", "定点商户注册");
            sl.Add("4", "消费者注册");
            return sl;
        }

        /// <summary>
        /// 卡片注册信息状态
        /// </summary>
        public enum CardRegisterStatus
        {
           
            Active=0,
            Dead=1
        }

        public enum FixMerchantStatus
        {
            /// <summary>
            /// 0:申请中
            /// </summary>
            SQZ=0,
            /// <summary>
            /// 1:通过
            /// </summary>
            TG=1,
            /// <summary>
            /// 2:拒绝
            /// </summary>
            JJ=2,
            /// <summary>
            /// 3:撤销申请
            /// </summary>
            CXSQ=3
        }

        public enum BaseStatus
        {
            /// <summary>
            /// 保存
            /// </summary>
            Save = 0,
            /// <summary>
            /// 删除
            /// </summary>
            Delete = 1,
            /// <summary>
            /// 提交
            /// </summary>
            Submit = 2,
            /// <summary>
            /// 退回
            /// </summary>
            Return = 3
        }

        public enum BillPre
        {
            /// <summary>
            /// 卡片信息
            /// </summary>
            XX = 0,
            /// <summary>
            /// 卡片回收
            /// </summary>
            HS = 1
        }

        /// <summary>
        /// 所有单子的状态
        /// </summary>
        public enum Status
        {
            /// <summary>
            /// 活动的
            /// </summary>
            Active,
            /// <summary>
            /// 删除的
            /// </summary>
            Delete
        }

        //用户类型列表
        public static SortedList UserTypeList()
        {
            SortedList sl = new SortedList();
            sl.Add("0", "管理员用户");
            sl.Add("1", "世惠用户");
            sl.Add("2", "省级代理");
            sl.Add("3", "县级代理");
            sl.Add("4", "定点商户");
            sl.Add("5", "消费者");
            return sl;
        }

        //卡片注册方式列表
        public static SortedList CardRegTypeList()
        {
            SortedList sl = new SortedList();
            sl.Add("1", "单卡注册");
            sl.Add("2", "连号批量注册");
            return sl;
        }

        //卡片录入方式列表
        public static SortedList CardInTypeList()
        {
            SortedList sl = new SortedList();
            sl.Add("1", "单卡录入");
            sl.Add("2", "连号批量录入");
            return sl;
        }

        public enum CardInType
        {
            SingleIn=1,
            MultiIn=2
        }

        public enum CardRegType
        {
            SingleIn = 1,
            MultiIn = 2
        }

        /// <summary>
        /// 报表条件类型
        /// </summary>    
        public enum ConditionTypes
        {
            /// <summary>
            /// 精确值
            /// </summary>
            PreciseValue = 10,
            /// <summary>
            /// 模糊值
            /// </summary>
            FuzzyValue = 20,
            /// <summary>
            /// 范围值
            /// </summary>
            RangeValue = 30,
            /// <summary>
            /// 必选值
            /// </summary>
            MustChooseValue = 40,
            /// <summary>
            /// 枚举值
            /// </summary>
            EnumValue = 50,
            /// <summary>
            /// 自定义控件
            /// </summary>
            UserControl = 60
        }

        public static SortedList ConditionTypesList()
        {
            SortedList sl = new SortedList();
            sl.Add("10", "精确值");
            sl.Add("20", "模糊值");
            sl.Add("30", "范围值");
            sl.Add("40", "必选值");
            sl.Add("50", "枚举值");
            sl.Add("60", "复合控件");
            return sl;
        }

        /// <summary>
        /// 状态
        /// </summary>
        /// <returns></returns>
        public static SortedList StatusList()
        {
            SortedList sl = new SortedList();
            sl.Add("1", "有效");
            sl.Add("0", "无效");
            return sl;
        }

        /// <summary>
        /// 参数类型
        /// </summary>
        public enum ParameterTypes
        {
            /// <summary>
            /// 输入值
            /// </summary>
            InsertValue = 10,
            /// <summary>
            /// 选择值
            /// </summary>
            ChoiceValue = 20,
            /// <summary>
            /// 日期值
            /// </summary>
            DateValue = 30,
            /// <summary>
            /// 布尔值
            /// </summary>
            BoolValue = 40

        }

        public static SortedList ParameterTypesList()
        {
            SortedList sl = new SortedList();
            sl.Add("10", "输入值");
            sl.Add("20", "选择值");
            sl.Add("30", "日期值");
            sl.Add("40", "布尔值");
            return sl;
        }

        /// <summary>
        /// 数据源类型
        /// </summary>
        public enum ObjectType
        {
            /// <summary>
            /// 表
            /// </summary>
            Table = 10,
            /// <summary>
            /// 视图
            /// </summary>
            View = 20,
            /// <summary>
            /// 存储过程
            /// </summary>
            Package = 30
        }

        public static SortedList ObjectTypeList()
        {
            SortedList sl = new SortedList();
            sl.Add("10", "表");
            sl.Add("20", "视图");
            sl.Add("30", "存储过程");
            return sl;
        }

        /// <summary>
        /// 选择性数据来源类别
        /// </summary>
        public enum ChooseSourceType
        {
            /// <summary>
            /// 参数类别表
            /// </summary>
            ParamTable = 10,
            /// <summary>
            /// 基础数据表
            /// </summary>
            BaseTable = 20,
            /// <summary>
            /// 自定义控件
            /// </summary>
            UserControl = 30
        }

        /// <summary>
        /// Common状态
        /// </summary>
        public enum CommonSatus
        {
            /// <summary>
            /// 启用
            /// </summary>
            Started = 1,

            /// <summary>
            /// 禁用
            /// </summary>
            stopped = 0,

            /// <summary>
            /// 删除
            /// </summary>
            Delete = 9

        }

        /// <summary>
        ///  参数是否固化
        /// </summary>
        public enum IsSolidify
        {
            /// <summary>
            ///  固化
            /// </summary>
            Yes = 1,

            /// <summary>
            /// 不固化
            /// </summary>
            No = 0
        }

        /// <summary>
        ///  是否有效
        /// </summary>
        public enum IsValid
        {
            /// <summary>
            ///  有效
            /// </summary>
            Yes = 1,

            /// <summary>
            /// 无效
            /// </summary>
            No = 0
        }

        /// <summary>
        ///  是否虚拟用户
        /// </summary>
        public enum IsVirtualUser
        {
            /// <summary>
            ///  是
            /// </summary>
            Yes = 1,

            /// <summary>
            /// 否
            /// </summary>
            No = 0
        }



        /// <summary>
        ///  性别
        /// </summary>
        public enum Sex
        {
            /// <summary>
            ///  男 
            /// </summary>
            Male = 1,

            /// <summary>
            /// 女
            /// </summary>
            Female = 0
        }


        /// <summary>
        ///  时间间隔
        /// </summary>
        public enum TimeSpanType
        {
            /// <summary>
            ///  天
            /// </summary>
            Day = 1,

            /// <summary>
            ///  月
            /// </summary>
            Week = 2,

            /// <summary>
            ///  年
            /// </summary>
            Month = 3
        }

        public static SortedList TimeSpanTypeList()
        {
            SortedList sl = new SortedList();
            sl.Add("1", "天");
            sl.Add("2", "星期");
            sl.Add("3", "月");
            return sl;
        }

        /// <summary>
        /// 职位类别
        /// </summary>
        public enum JobTitleType
        {
            /// <summary>
            /// OCD职位
            /// </summary>
            OCDJobTitle = 1,

            /// <summary>
            /// 代理商职位
            /// </summary>
            AgentJobTitle = 2
        }

        /// <summary>
        /// 页面类型
        /// </summary>
        public enum PageType
        {
            /// <summary>
            /// 新增页面
            /// </summary>
            C,
            /// <summary>
            /// 查询查看页面
            /// </summary>
            R,
            /// <summary>
            /// 修改页面
            /// </summary>
            U,
            /// <summary>
            /// 功能模块
            /// </summary>
            F,
            /// <summary>
            /// 二级页面
            /// </summary>
            S,
            /// <summary>
            /// 一级页面
            /// </summary>
            T
        }


        /// <summary>
        /// 操作结果
        /// </summary>
        public enum ActionResult
        {
            Success=1,
            Fail=0
        }
        /// <summary>
        /// 操作类型
        /// </summary>
        public enum ActionType
        {
            Add = 10,
            Modify = 11,
            Delete = 12,
            Summit=13,
            Login=14
        }
        /// <summary>
        /// 操作类型
        /// </summary>
        /// <returns></returns>
        public static SortedList ActionTypeList()
        {
            SortedList sl = new SortedList();
            sl.Add("10", "新增");
            sl.Add("11", "修改");
            //sl.Add("12", "删除");
            //sl.Add("14", "登录系统");
            return sl;
        }

        /// <summary>
        /// 工序
        /// </summary>
        /// /// <summary>
        /// 操作类型
        /// </summary>
        /// <returns></returns>
        public static SortedList ProcessList()
        {
            SortedList sl = new SortedList();
            sl.Add("下料", "1");
            sl.Add("焊接", "2");
            sl.Add("半成品", "3");
            sl.Add("清洗喷漆", "4");
            sl.Add("成品", "5");
            return sl;
        }

        /// <summary>
        /// 基础资料类型
        /// </summary>
        public static SortedList MasterDataType()
        {
            SortedList sl = new SortedList();
            sl.Add("下料", "1");
            sl.Add("焊接", "2");
            sl.Add("半成品", "3");
            sl.Add("清洗喷漆", "4");
            sl.Add("成品", "5");

            /// <summary>
            /// 景点区域
            /// </summary>
            sl.Add("景点区域", "01");
            /// <summary>
            /// 业务员
            /// </summary>
            sl.Add("业务员", "02");
            /// <summary>
            /// 业务性质
            /// </summary>
            sl.Add("业务性质", "03");
            /// <summary>
            /// 组团方式
            /// </summary>
            sl.Add("组团方式", "04");
            /// <summary>
            /// 线路等级
            /// </summary>
            sl.Add("线路等级", "05");
            /// <summary>
            /// 线路名称
            /// </summary>
            sl.Add("线路名称", "06");
            /// <summary>
            /// 旅游地点
            /// </summary>
            sl.Add("线路名称", "07");
            /// <summary>
            /// 地接明细
            /// </summary>
            sl.Add("地接明细", "08");
            /// <summary>
            /// 导游明细
            /// </summary>
            sl.Add("导游明细", "09");
            /// <summary>
            /// 用车明细
            /// </summary>
            sl.Add("用车明细", "10");
            /// <summary>
            /// 票务明细
            /// </summary>
            sl.Add("票务明细", "11");
            /// <summary>
            /// 订餐明细
            /// </summary>
            sl.Add("订餐明细", "12");
            /// <summary>
            /// 订房明细
            /// </summary>
            sl.Add("订房明细", "13");
            /// <summary>
            /// 景点明细
            /// </summary>
            sl.Add("景点明细", "14");
            /// <summary>
            /// 保险明细
            /// </summary>
            sl.Add("保险明细", "15");
            /// <summary>
            /// 景点交通明细
            /// </summary>
            sl.Add("景点交通明细", "16");
            /// <summary>
            /// 购物明细
            /// </summary>
            sl.Add("购物明细", "17");
            /// <summary>
            /// 礼品明细
            /// </summary>
            sl.Add("礼品明细", "18");
            /// <summary>
            /// 操作明细
            /// </summary>
            sl.Add("操作明细", "19");
            return sl;
        }

        /// <summary>
        /// 库存单据
        /// </summary>
        public enum FormType
        {
            MaterialInStock = 1,//材料入库单
            MaterialUse = 2,//材料领料单
            MaterialReturn = 3,//材料退料单
            HalfProductInStock = 4,//半成品入库单
            ProductInStock = 5,//成品入库单
            HalfProductUse = 6,//半成品领用单
            ProductDelivery = 7,//成品出货单
            ProductReturn = 8,//成品退货单
            HalfProductChange = 9,//半成品转入单
        }
    }
}
